import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Store/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取客户分页
export function GetGuideStorePage(data) {
    return http.post({
        url: getBaseUrls().baseUrl + "api/member/getMyMember",
        data,
    })
}
//获取客户信息
export function GetGuideStoreDetail(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGuideStoreDetail",
        data,
    })
}

//获取客户等级
export function GetDealerGrades() {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetDealerGrades",
    })
}

//获取客户状态
export function GetStoreStatus() {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetStoreStatus",
    })
}
//回访跟进
export function GetStoreVisitRecord(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetStoreVisitRecord" + path,
        data,
    })
}
//提交回访
export function SubmitVisitRecord(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "SubmitVisitRecord",
        data,
    })
}
//获取组织架构部门
export function GetFrameworkTree(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetFrameworkTree",
        data,
    })
}
//客户标签
export function GetStoreTagList(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetStoreTagList",
        data,
    })
}
//获取区域员工
export function GetDisPersonnel(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetDisPersonnel",
        data,
    })
}
//获取总部仓库列表
export function GetWarehouseList(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetWarehouseList",
        data,
    })
}
//新增客户
export function GuideAddStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GuideAddStore",
        data,
    })
}
//编辑客户
export function GuideEditStore(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GuideEditStore",
        data,
    })
}
export function GuideEditStoreTagids(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GuideEditStoreTagids",
        data,
    })
}
//设置客户状态
export function SetStoreStatus(path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "SetStoreStatus" + path,
    })
}
